<script language="javascript" type="text/javascript">
	$.getScript('js/feature.tab.js');
</script>

<div class="header">	
	<div class="pageLinks">
		<a href="#/機能" onclick="loadPage('機能');return false;">機能</a> > 
		<strong>アンケート</strong>
	</div>
	<div class="Group_name">
		グループ： <?php echo $group_name ?>
	</div>
	<div class="Help" style="position:absolute;top:55px;left:652px;">
		<img src="image/Help_Button.gif" onclick="showHelp('vote');" />
	</div
</div>

<div class="tab_content">

<?php require($SETTINGS['VIEW_PATH'] . "messages" . $SETTINGS['VIEW_NAME']) ?>

	<table class="voteTable" border="1" width="100%" cellpadding="2" cellspacing="2">
	<tr class="titleRow" style="color:#fff"><td colspan="5">今日のアンケート一覧</td></tr>
	<?php if (!empty($votes)) { ?>
		<tr>
			<th style="font-size:12px;">アイコン</th>
			<th  style="font-size:12px;">名前</th>
			<th style="font-size:12px;">内容</th>
			<th style="font-size:12px;width: 120px;">選択肢</th>
			<th style="font-size:12px;width: 60px;">投稿時間</th>
		</tr>
	<?php } else { ?>
		<tr>
			<td><?php echo $MESSAGES['VOTE_NO_VOTES_MADE_TODAY'] ?></td>
		</tr>
	<?php }
			foreach ($votes as $vote) { ?>
				<tr class="voteTableRow">
					<td width="48">
						<img src="<?php echo $vote->tweet->icon; ?>">
					</td>
					<td>
						<?php echo $vote->name; ?> <br />
						(<?php echo $vote->tweet->author; ?>)
					</td>
					<td>
						<input type="hidden" name="id" value="<?php echo $vote->tweet->id; ?>" />
						<?php echo $vote->tweet->comment; ?>
					</td>
					<td>
					<?php
						foreach ($vote->alternatives as $alternative) { ?>
							<?php echo $alternative; ?>
							<br />
					<?php } ?>
					</td>
					<td>
						<?php echo date("H:i", $vote->tweet->date); ?>
					</td>
				</tr>
		<?php
			}
		?>
	</table>
		<input type="button" value="更新"onclick="loadPage('reload');" style="margin:20px 0 0 91.5%;"
</div>